New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

chmod

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chmod

chmod for nodejs

  • 0.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
549
increased by103.33%
Maintainers
1
Weekly downloads
 
Created
Source

Chmod Build Status Coverage Status

Inspired by gulp-chmod, but can be used everywhere.


Install

$ npm install chmod -g

Usage

var chmod = require('chmod');
chmod(file, 777);

Or you can use object instead of number, see stat-mode

chmod(file, {
  owner: {
    read: true,
    write: true,
    execute: true
  },
  group: {
    read: true,
    write: true,
    execute: true
  },
  others: {
    read: true,
    write: true,
    execute: true
  }
});

You can also write a object Simply when the same for each

chmod(file, {
  read: true
});

// equals

chmod(file, {
  owner: {
    read: true
  },
  group: {
    read: true
  },
  others: {
    read: true
  }
});

Otherwise will throw

LISENCE

Copyright (c) 2014 popomore. Licensed under the MIT license.

FAQs

Package last updated on 07 Mar 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc